package com.timothy.question;

import android.graphics.Color;

public class TypeBean2 {
	private String question;
	private String[] choice = new String[3];
	private String wholeMessage;
	private TypeBean2Config config;
	
	public TypeBean2Config getConfig() {
		return config;
	}
	public void setConfig(TypeBean2Config config) {
		this.config = config;
	}
	public String getQuestion() {
		return question;
	}
	public void setQuestion(String question) {
		this.question = question;
	}
	public String[] getChoice() {
		return choice;
	}
	public void setChoice(String[] choice) {
		this.choice = choice;
	}
	public String getWholeMessage() {
		return wholeMessage;
	}
	public void setWholeMessage(String wholeMessage) {
		this.wholeMessage = wholeMessage;
	}
	
	public static TypeBean2 getMockInstance(){
		TypeBean2 bean = new TypeBean2();
		//question and answers
		bean.setQuestion("Q2:What are you English Grade?");
		bean.setChoice(new String[]{"Low","Mid","High"});
		StringBuffer sb = new StringBuffer(bean.getQuestion()+"\n");
		sb.append("1:"+bean.getChoice()[0]+"\n");
		sb.append("2:"+bean.getChoice()[1]+"\n");
		sb.append("3:"+bean.getChoice()[2]);
		bean.setWholeMessage(sb.toString());
		//UI face Config
		TypeBean2Config config = new TypeBean2Config();
		config.setLayoutBgColor(Color.parseColor("#FFCCCC"));
		config.setLayoutBgLight(Color.CYAN);
		
		config.setLabelBgColor(Color.parseColor("#FFFFFF"));
		config.setLabelTextColor(Color.parseColor("#000000"));
		config.setLabelTextSize(30);
		
		config.setButtonTextColor(Color.parseColor("#0000ff"));
		config.setButtonTextSize(30);
		
		config.setOrientation("P");
		config.setTimeLimit(new Integer(5));
		config.setInterval(new Integer(1));
		bean.setConfig(config);
		return bean;
	}
}
